<template>
  <div>
    <iframe :src="decodeSrc" frameborder="0" width="100%" id="bi_iframe" @load="adjustIframe"></iframe>
  </div>
</template>

<script>

export default {
  name: 'IframeView',
  props: {
    src: {
      type: String,
      default: ''
    }
  },
  computed: {
    decodeSrc () {
      return decodeURIComponent(this.src)
    }
  },
  methods: {
    adjustIframe () {
      // var ifm = document.getElementById('bi_iframe')
      // var dHeight = ifm.contentWindow.document.body.scrollHeight
    }
  }
}
</script>
